package com.sj.uabrowser.mvp.main.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

public class News implements MultiItemEntity, Serializable {
    /**
     * update_time : 2019-06-23 20:24:20
     * id : wl_61fcaf25be19e018ca4c2e41acf833b4
     * source_id : 17
     * big_img : http://img.cashslide.cn/app/hippo/20190623/0e2ede75813094381aee107c5d21fbd1.jpg
     * source : 116810080
     * imp_tracking : ["http://m.dydyy.cn/bd/impm?ext=Mgk0MTEJNTY3CeaOqOiNkAkyCQkJCQkJCQkxMDgwCTE5MjAJMQkyMTAuMTMuODguMgkxCTEJUVpFZUIzZjNpTjJVMTU2MTM0NjQwMy45MjMJMQkxCTE3CXdsXzYxZmNhZjI1YmUxOWUwMThjYTRjMmU0MWFjZjgzM2I0CQkJczAxMjhDOE5BWWpyYjN6ajMJMTU2MTM0NjQwMwkxCeaVmeiCsgkJCQkJCQk=&r=2RFjQNqU"]
     * clk_url : http://m.dydyy.cn/bd/clkm?ext=Mgk0MTEJNTY3CeaOqOiNkAkyCQkJCQkJCQkxMDgwCTE5MjAJMQkyMTAuMTMuODguMgkxCTEJUVpFZUIzZjNpTjJVMTU2MTM0NjQwMy45MjMJMQkxCTE3CXdsXzYxZmNhZjI1YmUxOWUwMThjYTRjMmU0MWFjZjgzM2I0CQkJczAxMjhDOE5BWWpyYjN6ajMJMTU2MTM0NjQwMwkxCeaVmeiCsgkJCQkJCQk=&g=http%3A%2F%2Fm.dydyy.cn%2Fbd%2Fnews%2Fa%3Fsubmedia%3D567%26conn%3D1%26category%3D%25E6%258E%25A8%25E8%258D%2590%26sid%3D17%26mac%3D%26anid%3D%26t%3D2%26sw%3D1080%26carrier%3D1%26ref%3D1%26model%3D%26ua%3D%26ip%3D210.13.88.2%26make%3D%26devicetype%3D1%26sh%3D1920%26imei%3D%26newsid%3Dwl_61fcaf25be19e018ca4c2e41acf833b4%26os%3D2%26osv%3D%26media%3D411
     * title : 学术界的“后翟天临时代”
     * cat : 教育
     * images : [{"url":"http://img.cashslide.cn/app/hippo/20190623/0e2ede75813094381aee107c5d21fbd1.jpg"}]
     */

    private boolean is_ad;
    private String update_time;
    private String id;
    private String source_id;
    private String big_img;
    private String source;
    private String clk_url;
    private String title;
    private String cat;
    private List<String> imp_tracking;
    private List<ImagesBean> images;

    public boolean isIs_ad() {
        return is_ad;
    }

    public void setIs_ad(boolean is_ad) {
        this.is_ad = is_ad;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSource_id() {
        return source_id;
    }

    public void setSource_id(String source_id) {
        this.source_id = source_id;
    }

    public String getBig_img() {
        return big_img;
    }

    public void setBig_img(String big_img) {
        this.big_img = big_img;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getClk_url() {
        return clk_url;
    }

    public void setClk_url(String clk_url) {
        this.clk_url = clk_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCat() {
        return cat;
    }

    public void setCat(String cat) {
        this.cat = cat;
    }

    public List<String> getImp_tracking() {
        return imp_tracking;
    }

    public void setImp_tracking(List<String> imp_tracking) {
        this.imp_tracking = imp_tracking;
    }

    public List<ImagesBean> getImages() {
        return images;
    }

    public void setImages(List<ImagesBean> images) {
        this.images = images;
    }

    @Override
    public int getItemType() {
        return images!=null&&images.size()==1?1:0;
    }

    public static class ImagesBean implements Serializable{
        /**
         * url : http://img.cashslide.cn/app/hippo/20190623/0e2ede75813094381aee107c5d21fbd1.jpg
         */

        private String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
